package common.server.redis.redisson;


import common.server.redis.RedisClient;
import common.server.redis.RedisResource;
import org.redisson.api.RedissonClient;

/**
 * @author Administrator
 * @version [版本号, 2017/11/23 0023]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class DefaultRedissonClient implements RedisClient {
	private final RedissonResource redissonResource;

	public DefaultRedissonClient(RedissonClient redisson){
        this.redissonResource = new RedissonResource(redisson);
    }

	@Override
	public RedisResource getWriteResource() {
		return redissonResource;
	}

	@Override
	public RedisResource getReadResource() {
		return redissonResource;
	}
}
